home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2806 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  857 b 

  1. Path: news.apana.org.au!calvados!edwall
  2. From: edwall@calvados.apana.org.au (Karl Edwall)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Simple DLL Problem
  5. Message-ID: <g3wBkD3w165w@calvados.apana.org.au>
  6. Date: Fri, 19 Jan 96 21:57:27 +1100
  7. References: <30f27530.80885051@news.internet-eireann.ie>
  8. Organization: APANA, Hobart, Tasmania: 002 34 8530
  9.  
  10. mkelly@vocean.ie writes:
  11.  
  12. > #ifdef _cplusplus
  13. > extern "C" {  
  14. > #endif
  15. > int FAR PASCAL _export mySum(int a, int b);
  16. > #ifdef _cplusplus
  17. > }
  18. > #endif
  19. > int    FAR PASCAL _export mySum(int a,int b)
  20. > {
  21.  
  22. The function has to declared as a extern "C" function in the actual function
  23. also I think, don't take my word for it though, I did do the same mistake
  24. myself but I just don't have the code here to confirm how I did it.
  25.  
  26. -- 
  27. edwall@calvados.apana.org.au (Karl Edwall)
  28. APANA, Hobart, Tasmania: 002 34 8530
  29.